 <template>
  <div>
    <button @click="add">升序</button>
  </div>
</template>
 <script>
export default {
  data() {
    return {
      orderType: 0,
    };
  },
  methods: {
    add() {
      //commit接到mutations封装好的方法
      this.$store.commit("Pperson");
    },
  },
  mounted() {},

  computed: {},
};
</script>
 <style lang='css' scoped>
button {
  position: fixed;
  left: 40px;
  top: 0px;
}
</style>